<script setup lang="ts">
import WelcomeItem from './WelcomeItem.vue'
import DocumentationIcon from './icons/IconDocumentation.vue'
import ToolingIcon from './icons/IconTooling.vue'
import EcosystemIcon from './icons/IconEcosystem.vue'
import CommunityIcon from './icons/IconCommunity.vue'
import SupportIcon from './icons/IconSupport.vue'
import { useCounterStore  } from '@/stores/counter'
import router from "@/router/index"
import { inject } from 'vue'
const store = useCounterStore();
const tagStore = inject<UseTagStore>("tagStore");
const toabout = ()=>{
  router.push("/about")
  tagStore&&tagStore.addTag(123)
  store.increment();
}
</script>
<template>
  <el-button type="primary" @click="toabout">Primary</el-button>
  <button>{{ store.count }}</button>
  <div>{{ tagStore&&tagStore.tagList }}</div>
</template>
